package com.eiisan.weixin.web.feign;

import com.eiisan.base.constant.EiisanServiceList;
import com.eiisan.core.util.api.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Description: 微信服务 Feign接口类
 * @Author gragonfly
 * @Date 2019/6/21
 **/
@FeignClient(value = EiisanServiceList.EIISAN_SERVICE_WEIXIN)
public interface WeiXinVerifyCodeFeignApi {

    /**
     * 检验微信验证码是否正确
     * @param phone
     * @param weixinCode
     * @return
     */
    @PostMapping(value = "/api/weixin/checkWeiXinVerifyCode")
    Result<Boolean> checkWeiXinVerifyCode(@RequestParam String phone, @RequestParam String weixinCode);
}
